package ch4oopexer1;
/*坦克有马力数、携带弹头数等属性，有启动、爬坡等方法*/
public class Tank {
    double horsepower;
    int account;

    public Tank(double horsepower, int account) {
        this.horsepower = horsepower;
        this.account = account;
    }

    public void run(){
        System.out.println("坦克启动");
    }
    public void upsolpe(){
        System.out.println("坦克上坡");

    }


}
